module.exports = {
  apps: [
    {
      name: 'NuxtAppName',
      port: '3000',
      exec_mode: 'cluster',
      instances: 'max',
      script: './.output/server/index.mjs'
    },
    {
      name: 'app_idaas_front_sit',
      port: '3000',
      env: {
        NODE_ENV: 'production'
      },
      exec_mode: 'cluster',
      instances: 2,
      script: './.output/server/index.mjs',
      args: '--dotenv .env.sit',
      log_date_format: 'YYYY-MM-DD HH:mm:ss Z'
    },
    {
      name: 'app_idaas_front_uat',
      port: '3000',
      env: {
        NODE_ENV: 'production'
      },
      exec_mode: 'cluster',
      instances: 'max',
      max_memory_restart: '512M',
      cron_restart: '0 3 * * *',
      script: './.output/server/index.mjs',
      args: '--dotenv .env.uat',
      log_date_format: 'YYYY-MM-DD HH:mm:ss Z'
    },
    {
      name: 'app_idaas_front_prod',
      port: '3000',
      env: {
        NODE_ENV: 'production'
      },
      exec_mode: 'cluster',
      instances: 'max',
      max_memory_restart: '512M',
      cron_restart: '0 3 * * *',
      script: './.output/server/index.mjs',
      log_date_format: 'YYYY-MM-DD HH:mm:ss Z'
    }
  ]
}
